package cn.toleo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.toleo.common.pojo.ToleoResult;
import cn.toleo.content.service.ContentService;
import cn.toleo.pojo.TbContent;

/**
 * 内容管理
 * @author Administrator
 *
 */
@Controller
public class ContentController {
	@Autowired
	private ContentService contentService;
	
	@RequestMapping("/content/save")
	
	@ResponseBody
	public ToleoResult addContent(TbContent content){
		ToleoResult result=contentService.addContent(content);
		return result;	
	}
	
}
